package com.hdjd.dao;

import com.hdjd.entities.OpinionFile;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OpinionFileDao {

    /**
     * 根据评价Id查询评价图片
     * @param opiId
     * @return
     */
    List<String> selectOpinionFile(@Param("opiId") Integer opiId);

    /**
     * 根据评价Id删除所有评价文件
     * @param opiId
     * @return
     */
    int deleteOpinionFileByOpiId(@Param("opiId") Integer opiId);

    int deleteByPrimaryKey(Integer fileId);

    int insert(OpinionFile record);

    int insertSelective(OpinionFile record);

    OpinionFile selectByPrimaryKey(Integer fileId);

    int updateByPrimaryKeySelective(OpinionFile record);

    int updateByPrimaryKey(OpinionFile record);
}